<template>
  <div v-html="data.content" class="item"></div>
</template>

<script>
import { getSample } from "@/api/login"
export default {
  name: "productSample",
  data(){
    return {
      data: '',
      code: '',
    }
  },
  created(){
    this.code = this.$route.query.code
    this.getInfo()
  },
  methods: {
    getInfo(){
      getSample(this.code).then(res => {
        if(res.data){
          this.data = res.data
          document.title = this.data.name
        }
      })
    }
  }
}
</script>

<style scoped>
.item {
  padding: 20px;
  font-size: 14px;
  color: #222222;
}
</style>
